<?php

class Module_Admin_Controller_Index extends Engine_Controller {

    protected $menu = Engine_Data_Model_Menu::PARENT_ADMIN;
    protected $name = 'Администрирование';

    public function preDispatch() {
        parent::preDispatch();
        $this->activeUser->checkPermission('module.admin');
    }


    public function indexAction() {
        $this->authUserOnly();
    }

    public function configAction() {
        $activeUser = Application_Bootstrap::getActiveUser();
        $request = Application_Bootstrap::getRequest();
        $params = $this->getRequest()->getParams();
        $form = new Module_Admin_Form_Config('config', array('name' => 'Конфигурация'));
        $form->populate($params);
        if ($_POST && $form->isValid()) {

        }
        $this->getView()->form = $form;


    }

}